-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: support cloudflare pages functions #13
Conversation
So if we need to deploy both static files and cloudflare pages functions we need the following github artifact structure:
If we need to deploy only static files we need the following github artifact structure:
Correct? If so could you add this info to the README file for future reference. |
You are right. However, a better approach came into my mind today and I have re-done this today. What was the issue with my previous submission? It worked, but it was not as clean as the new solution. I have added the info to readme, and I have also updated the QA links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine
@EresDev doesn't seem to work anymore. Should not have to rely on a pull request. Should deploy on every commit. https://github.com/ubiquity/pay.ubq.fi/actions/runs/9562570163/job/26359224909 I can leave it for another day or two for testing in production but otherwise will need to revert. Please prioritize this as it affects all of our projects. Thanks. |
I didn't change the trigger. So whatever the trigger (commit or pull) was set before this PR, it should work. But let me take a look, maybe it is breaking somewhere. |
If needed, please work on the development branch directly. It might help you debug faster. We can revert if you can't figure it out in the next day or two. |
Ok, it appears there is no issue. It is working fine. We need to understand a tricky part to know why it failed in your case. In your link, the "deploy to cloudflare" workflow was on development branch. It needed an artifact created by "build" workflow on the same branch. But the previous run of "build" workflow was "beta" branch. If "build" workflow runs before "deploy to cloudflare" there is no issue. You probably ran "deploy to cloudflare" manually, and last "build" was done by the different branch with a different artifact name. So, until we have gift-cards in beta branch, to build and deploy manually, first run the I have also run the deploy workflow on |
The above info is correct if we want to deploy to development branch. The deploy of non-default branch still doesn't work. I am looking into it. |
Deployment of branch Deployment of branch Deployment of It is all working fine now. @0x4007 |
beta.pay.ubq.fi and pay.ubq.fi resolve to the same commit @rndquu http://alpha.beta.pay.ubq.fi/ (a made up one now for testing improperly config'd dynamic settings) does not resolve. |
|
Resolves #12
QA - static only project
The changes should be backward compatible. The existing static-only projects should keep working without requiring any change. I have used a fork of ubiquity/work.ubq.fi to test this.
workflow: https://github.com/EresDevOrg/work.ubq.fi-2/actions/runs/9423832718/job/25962973041
deployment: https://8f190d0e.work-ubq-fi-2.pages.dev/
QA - project with pages functions
It should deploy Cloudflare pages static files, and Cloudflare pages functions.
workflow: https://github.com/EresDevOrg/gift-card-pay.ubq.fi-2/actions/runs/9423625045/job/25962649398
deployment: